﻿using System;
using System.Net;

using Tulde.Windows.Music.ViewModel;

namespace Tulde.Windows.Music.Mp3Tunes
{
    public enum LockerDataOperations
    {
        accountData,
        lockerSearch,
        lockerFileExists,
        lockerStats,
        lockerData,
        albumartget
    }
    public class LockerDataService<T> : BaseDataService<LockerDataOperations> 
    {
        protected override object DeserializeResult(string result)
        {
            return ViewModelSerializerFactory.Instance.Deserialize<T>(result);
        }
        protected override string BaseUrl
        {
            get
            {
                return "http://ws.mp3tunes.com/api/v1/";
            }
        }
    }
}
